package com.asiainfo.rt.debugger;

public class BatchEvaluatorServer {
	Object[] myObjects;

	public Object[] evaluate(Object[] objects) {
		this.myObjects = objects;
		Object[] result = new Object[objects.length];
		for (int idx = 0; idx < objects.length; idx++) {
			try {
				result[idx] = objects[idx].toString();
			} catch (Throwable e) {
				result[idx] = e;
			}
		}
		return result;
	}
}